package com.spring.demo.controller;

import com.spring.demo.entity.UserInfo;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/***
 * @title UserController
 * @description
 * @author baiji
 * @version 1.0.0
 * @create 2023/5/19 15:17
 **/
@RestController
@RequestMapping("/user")
public class UserController {

    @PostMapping("/postTest")
    public String postTest(@RequestBody UserInfo userInfo){
        System.out.println(userInfo);
        return "success";
    }
}
